﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="CustomerArchives_CustomerPreferenceMain" Codebehind="CustomerPreferenceMain.aspx.cs" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <div align="Justify">
     <h2>会员喜好</h2>
        <div class="menu_bg"><asp:Button ID="btnAdd" runat="server" CssClass="input_button" Text="新增" Visible=false  OnClick="btnAdd_Click"/><br /></div>
            <div class="menu_bg3"><asp:DropDownList ID="DropDownList1" runat="server">
                <asp:ListItem Selected="True" Value="0">喜好代码</asp:ListItem>
                <asp:ListItem Value="1">喜好名称</asp:ListItem>
            </asp:DropDownList>
            <asp:TextBox ID="txtInput" runat="server"></asp:TextBox>
            <asp:Button ID="btnSearch" runat="server" CssClass="input_button" Text="查找" OnClick="btnSearch_Click" /></div>
        <div class="juli"><asp:DataList ID="dlistPreferences" runat="server" CellPadding="0">
            <HeaderTemplate>
                <table style="width: 900px; background-color:#999999;" cellpadding="0" cellspacing="1" border="0">
                    <tr class="z1">
                        <td width="400" class="zt3">
                            代码
                        </td>
                        <td class="zt3">
                            喜好名称
                        </td>
                    </tr>
                </table>
            </HeaderTemplate>
            <ItemTemplate>
                <table width="900" border="0" cellspacing="0" cellpadding="0">
                    <tr class="z2" onmouseover="Fuscous(this)" onmouseout="Undertone(this)">
                        <td width="400" align="center" class="bk_left">
                            <a class="lj" href= 'CustomerPreferenceDetail.aspx?code=<%# Eval("Preference_ID") %>'><%# Eval("Preference_ID")%></a>
                        </td>
                        <td align="center" class="bk_middle">
                            <%# Eval("Preference_Name")%>
                        </td>
                    </tr>
                </table>
            </ItemTemplate>
        </asp:DataList></div>
        <div class="juli"><webdiyer:aspnetpager id="AspNetPager1" 
        runat="server"
        NumericButtonCount="8" 
       ShowCustomInfoSection="left" 
       PagingButtonSpacing="0"
       ShowInputBox="always" 
       HorizontalAlign="Center" 
       SubmitButtonText="转到" 
       NumericButtonTextFormatString="[{0}]" 
       OnPageChanged="AspNetPager1_PageChanged" 
       FirstPageText="首页" 
       InputBoxClass="1" 
       InputBoxStyle="1" 
       LastPageText="末页" 
       NextPageText="下一页" 
       PrevPageText="上一页" 
       SubmitButtonClass="input_button">
       </webdiyer:aspnetpager></div>
    
    </div>
    </form>
</body>
</html>
